var express = require('express');
var app = express();
var bodyParser = require('body-parser');
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: false }));

var routes = require('./routes/index');
routes(app);

var server = app.listen(8081, () => {
  var port = server.address().port;
  console.log('Your application is running here: http://localhost:' + port)
});
